package util;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Calendar;

public class CurrentDate {
	@SuppressWarnings("deprecation")
	public static Timestamp getCurrentTimeStamp(){
		//java.util.Date today = new java.util.Date();
        
        
    return new Timestamp
    (Calendar.YEAR,Calendar.MONTH,Calendar.DATE,Calendar.HOUR,Calendar.MINUTE,Calendar.SECOND,0);
	}
	public static String getCurrentDate()
	{
		Calendar cl= Calendar.getInstance();
		SimpleDateFormat formatter=new SimpleDateFormat("yyyy-MM-dd");
		return formatter.format(cl.getTime());
	}
}
